package com.ftx.common.util;

import redis.clients.jedis.JedisCluster;

import javax.annotation.Resource;

/**
 * Created by fengtingxin on 2019/5/31.
 * redis集群工具类
 * https://blog.csdn.net/lr131425/article/details/61920511
 */

public class RedisClusterUtils {

    @Resource
    private JedisCluster jedisCluster;


    public void set(String key, String value) {
        jedisCluster.set(key, value);
    }

    public String get(String key){
        return jedisCluster.get(key);
    }

    public boolean exists(String key){
        return jedisCluster.exists(key);
    }
}
